package com.awangyh.net.nio;

/**
 * @author: wangyanhui
 * @since: 2017/4/28
 */
public class NIOTimeServer {

    public static void main(String[] args) {
        int port = 8080;
        if (args != null && args.length > 0 ){
            try {
                port = Integer.valueOf(args[0]);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

        MultipleexerTimeServer multipleexerTimeServer = new MultipleexerTimeServer(port);

        new Thread(multipleexerTimeServer).start();

    }
}
